// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import axios from 'axios'
import App from './App'
import router from './router'
import promise from 'es6-promise'
promise.polyfill();
// 引入 element-ui
import {
    Input,
    Button,
    Checkbox,
    Form,
    FormItem,
    Message,
    Notification,
    Menu,
    Submenu,
    MenuItemGroup,
    MenuItem,
    Rate,
    Row,
    Col
} from 'element-ui'
// 使用 element-ui
Vue.use(Input);
Vue.use(Button);
Vue.use(Checkbox);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItemGroup);
Vue.use(MenuItem);
Vue.use(Rate);
Vue.use(Row);
Vue.use(Col);
Vue.prototype.$message = Message;
Vue.prototype.$notify = Notification;

Vue.prototype.$http = axios;

// 设置为 false 以阻止 vue 在启动时生成生产提示
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: {
        App
    },
    template: '<App/>'
})
